﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using eBay.Service.Core.Soap;

namespace eBayBus.Block
{
    public class TemplateBlock
    {
        public static Dictionary<string, string> _TemplateBlocks = new Dictionary<string, string>();

                public TemplateBlock()
        {
            Init();
        }

        private static void Init()
        {
            if (_TemplateBlocks.Keys.Count > 0) return;



            _TemplateBlocks.Add("BEAD_T1", "BEAD_T1");
            _TemplateBlocks.Add("STAMP_T1", "STAMP_T1");


        }

        public static Dictionary<string, string> GetAll()
        {
            Init();
            return _TemplateBlocks;
        }

        public static void SetBlock(string key, ItemType i1)
        {

            switch (key)
            {
                case "STAMP_T1":

                    #region STAMP_T1
                    i1.Description = @"<html><head></head><body><table width='100%'><tbody><tr><td><table border='3' width='100%' cellpadding='2' bordercolor='#1A3F25'>
	<tbody><tr>
		<td background='http://auctions.eliteturnkey.com/basic/green_pattern/green.gif' valign='top'>
		<table border='0' width='100%' cellspacing='15' cellpadding='15'>
			<tbody><tr>
				<td>
				<table border='4' width='100%' cellpadding='2' bordercolor='#1A3F25' bgcolor='#FFFFFF'>
					<tbody><tr>
						<td valign='top'>
						<table border='0' width='100%' cellspacing='5' cellpadding='5'>
							<tbody><tr>
								<td valign='top'>
								<table border='0' cellspacing='0' cellpadding='0' width='100%'>
									<tbody><tr>
										<td valign='top'>
										<div align='center'>
											<table id='Table_01' border='0' cellspacing='0' cellpadding='0' width='100%'>
												<tbody><tr>
													<td bgcolor='#ffffff' valign='top'>
													<p align='center'>
													<font size='4' face='Verdana' color='#102617'>
													 </font><font face='Verdana' size='5'><!-- Type your title here --></font></p>
													<p align='center'>
													<font face='Verdana' color='#102617'><!-- Begin Photos -->
													 </font></p>
													<p align='center'>
													&nbsp;</p>
													<p align='justify'>
													<font size='2' face='Verdana' color='#102617'><center><!-- Type your description here --></center>
													 <br>
													&nbsp;</font></p>
													<p align='justify'>
													<font size='2' face='Verdana' color='#102617'><!-- Type your shipping here -->
													<font face='Verdana' size='6'>Shipping Terms </font><br>
                                                    <p align='left'><font face='Verdana'>
                                                    							
                                                    							

                                                    <!-- Type your shipping here -->We deliver items by Air Mail to all of the world .Usually, it will take up to 10-25 days to reach. However, sometimes there <br><br>may be post office delay which we can do nothing. If you do not receive your order in 25 days, please feel free to contact <br><br>us asking for the tracking number and help.<br><br>Regular air mail postage is US$2, registered air mail add US$2. Multiple purchases will be combined. Total purchases over or equal to US$15.0 must be registered. without registered will be the buyer's risk.<br><br>*Shipping address : we ship the item according to your paypal shipping address . if you need change , please contact us.<br>

                                                    							
                                                    							
							                                                    </font></p>
													&nbsp;</font></p>
													<p align='justify'>
													<font size='2' face='Verdana' color='#102617'><!-- Type your payment here -->
													<font face='Verdana' size='6'>Payment Terms</font> <br>
                                                    <p align='left'><font face='Verdana'>
                                                    							


                                                    <!-- Type your payment here -->We only accept Paypal. <br><br>Place a bid only if you are a serious buyer. Email to us if you have any questions before bidding. Payment is expect to be paid within 3 days after auction ends. <br><br>If you have any question. Please email me before you bid. I will be very glad to reply you.<br>
                                                    							
                                                    							
						                                                        </font></p>
                                                    &nbsp;</font></p></td>
												</tr>
											</tbody></table>
										</div>
										</td>
									</tr>
								</tbody></table>
								</td>
							</tr>
						</tbody></table>
						</td>
					</tr>
				</tbody></table>
				</td>
			</tr>
		</tbody></table>
		</td>
	</tr>
</tbody></table>
</td></tr></tbody></table></body></html>";



                    #endregion
                    break;
                case "BEAD_T1":

                    #region BEAD_T1
                    i1.Description = @"
	                    <link href='http://designs.inkfrog.com/jewellery_2/styles.css' type='text/css' rel='stylesheet'>
	                    <div id='template'>
		                    <div class='outer'>
			                    <div class='inner'>
				                    <table class='header'>
				                    <tbody>
				                    <tr class='item'>
					                    <td></td>
				                    </tr>
				                    <tr class='title'>
					                    <td></td>
				                    </tr>
				                    </tbody>
				                    </table>

				                    <table class='content'>
				                    <tbody>
				                    <tr class='top section-title'>
					                    <td><img src='http://designs.inkfrog.com/jewellery_2/images/icon.png' width='46' height='48' alt=''> Description</td>
				                    </tr>
				                    <tr class='section-content'>
					                    <td>
                    						<center><font face='Verdana' size='4'><!-- Type your title here --></font></center>
					                    </td>
				                    </tr>
				                    <tr class='section-content'>
					                    <td>
                    						<center> <!-- Begin Photos --></center>
					                    </td>
				                    </tr>
				                    <tr class='section-content'>
					                    <td><!-- Type your description here -->
                                            <br>
                                            <br>
                                                QTY for this listing: 1pc(only sell bead)<br>
                                                Condition: Brand New Without Tag<br>
                                                Color: look at the picture<br>
                                                Size: appX14mm*9-10mm <br><br>

                                                All weights and measurements are approximate.<br>
					                    </td>
				                    </tr>
				                    <tr class='section-content'>
					                    <td>
					                    </td>
				                    </tr>
				                    <tr class='section-title'>
					                    <td><img src='http://designs.inkfrog.com/jewellery_2/images/icon.png' width='46' height='48' alt=''> Shipping Terms</td>
				                    </tr>
				                    <tr class='section-content'>
					                    <td>
                                                    <!-- Type your shipping here -->We deliver items by Air Mail to all of the world .Usually, it will take up to 10-25 days to reach. However, sometimes there may be post office delay which we can do nothing. If you do not receive your order in 25 days, please feel free to contact us asking for help.<br><br>
					                    </td>
				                    </tr>
				                    <tr class='section-title'>
					                    <td><img src='http://designs.inkfrog.com/jewellery_2/images/icon.png' width='46' height='48' alt=''> Payment Methods</td>
				                    </tr>
				                    <tr class='section-content last'>
					                    <td>
                                                    <!-- Type your payment here -->We only accept Paypal. <br><br>Place a bid only if you are a serious buyer. Email to us if you have any questions before bidding. Payment is expect to be paid within 3 days after auction ends. <br><br>If you have any question. Please email me before you bid. I will be very glad to reply you.<br>
					                    </td>
				                    </tr>
				                    <tr class='section-end'>
					                    <td></td>
				                    </tr>
				                    </tbody>
				                    </table>
			                    </div>
		                    </div>
	                    </div>
                    ";
                    #endregion

                    break;
                default:
                    break;
            }

        }
    }
}
